package com.pattern.factory;

public class Test {

    public static void main(String[] args) {

        PeopleFactory peopleFactory = new PeopleFactory();
        People people = peopleFactory.getPeople("Xiaohong");
        System.out.print("工厂模式-------------");
        people.run();

    }
}
